<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class SLessonFeedback extends Model
{
    use SoftDeletes;
    public $table = "s_lesson_feed_back";

    protected $fillable = [
        'title', 'content', 'admin_id', 'lesson_id', 'created_at', 'updated_at'
    ];

    public function adminUser()
    {
        return $this->hasOne('App\Models\AdminUsers', 'id', 'admin_id');
    }

    public function lessons()
    {
        return $this->hasOne('App\Models\SLessonInfo', "id", 'lesson_id');
    }

}
